home *** CD-ROM | disk | FTP | other *** search
- on mouseDown me
- set T0 to the top of sprite 16 - 2
- set B0 to the bottom of sprite 16
- set the floatPrecision to 1
- set the cursor of sprite the spriteNum of me to [member "Closed Hand", member "Closed Hand Mask"]
- repeat while the stillDown
- if (the mouseV > T0) and (the mouseV < B0) then
- set the locV of sprite 17 to the mouseV
- put -5 + float((B0 - the locV of sprite 17) / 41.89999999999999858) into field "A"
- end if
- updateStage()
- end repeat
- end
-
- on mouseUp me
- set the trails of sprite 19 to 1
- set the cursor of sprite the spriteNum of me to [member "Hand", member "Hand Mask"]
- set x0 to the locH of sprite 12
- set y0 to the locV of sprite 12
- if the foreColor of sprite 19 >= 6 then
- set the foreColor of sprite 19 to 0
- else
- set the foreColor of sprite 19 to the foreColor of sprite 19 + 1
- end if
- updateStage()
- repeat with n = 0 to 120
- set the locH of sprite 19 to (2.39999999999999991 * n) + x0
- if the hilite of cast "Sine" then
- set the locV of sprite 19 to y0 - (field "A" * 50.0 * float(sin(float(n * 3.0 * PI / 180.0))))
- end if
- if the hilite of cast "Cosine" then
- set the locV of sprite 19 to y0 - (field "A" * 50.0 * float(cos(float(n * 3.0 * PI / 180.0))))
- end if
- if the hilite of cast "Tangent" then
- set the locV of sprite 19 to y0 - (field "A" * 50.0 * float(tan(float(n * 3.0 * PI / 180.0))))
- end if
- updateStage()
- end repeat
- set the locV of sprite 19 to 900
- end
-
- on beginSprite
- put "1" into field "A"
- set the foreColor of sprite 19 to 3
- set the cursor of sprite 17 to [321, 322]
- set the locV of sprite 17 to the bottom of sprite 16 - (42 * 5) - 42
- set the hilite of cast "Sine" to 1
- set the hilite of cast "Cosine" to 0
- set the hilite of cast "Tangent" to 0
- end
-